package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class InputButton extends JButton implements ActionListener {
	static final long serialVersionUID = 6669991;
	Actionable actn;
	
	public InputButton(Actionable actn, String str) {
		super(str);
		addActionListener(this);
		this.actn = actn;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		actn.action(this);
	}

}
